using System;
using System.Web.UI.WebControls;
using SpiderMaster.AspNet.TradingSystem.BusinessLogicLayer;
using SpiderMaster.AspNet.TradingSystem.Web;

namespace SpiderMaster.AspNet.TradingSystem.UI
{
    public partial class AdministrationDefault_aspx : TradingCenterPage
    {
        protected void StatsDataSource_Selected(object sender, ObjectDataSourceStatusEventArgs e)
        {
            Stats stats = e.ReturnValue as Stats;
            LastGeneratedLabel.Text = String.Format("{0:G}", stats.LastGenerated);
        }

        protected void RefreshStatsButton_Click(object sender, EventArgs e)
        {
            StatsCache.Clear(Context);
            StatsFormView.DataBind();
        }
    }
}
